;
(function () {
    // 定义一个类,这个类的类型就是上面定义的接口
    var Person = /** @class */ (function () {
        function Person() {
        }
        Person.prototype.fly = function () {
            console.log('哈哈哈哈');
        };
        return Person;
    }());
    var person = new Person();
    person.fly();
    var Person2 = /** @class */ (function () {
        function Person2() {
        }
        Person2.prototype.fly = function () {
            console.log('呵呵');
        };
        Person2.prototype.swim = function () {
            console.log('嘿嘿');
        };
        return Person2;
    }());
    var person2 = new Person2();
    person2.fly();
    person2.swim();
    // 定义一个类
    var Person3 = /** @class */ (function () {
        function Person3() {
        }
        Person3.prototype.swim = function () {
            console.log(2222);
        };
        Person3.prototype.fly = function () {
            console.log(3333);
        };
        return Person3;
    }());
    var person3 = new Person3();
    person3.swim();
    // 总结:接口和接口之间叫继承(使用的是extends关键字),类和接口之间叫实现
})();
